package com.ytktt.study.week5.task8;

import com.ytktt.study.week5.task8.properties.School;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * TODO
 *
 * @author ytk
 */
@Slf4j
@SpringBootApplication
public class StudyApplication implements ApplicationRunner {

    @Autowired
    private School school;

    public static void main(String[] args) {
        SpringApplication.run(StudyApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("school: {}", school);
    }
}
